package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.bo.RoleCreateBO;
import com.cskaoyan.bean.po.RolePO;
import lombok.Data;

import java.util.Date;
@Data
public class RoleCreateVO {

    private Integer id;
    private String name;
    private String desc;
    private Date addTime;
    private Date updateTime;

    public static RoleCreateVO getRoleCreateVO(RolePO rolePO){
        RoleCreateVO roleCreateVO = new RoleCreateVO();
        roleCreateVO.setId(rolePO.getId());
        roleCreateVO.setName(rolePO.getName());
        roleCreateVO.setDesc(rolePO.getDesc());
        roleCreateVO.setAddTime(rolePO.getAddTime());
        roleCreateVO.setUpdateTime(rolePO.getUpdateTime());
        return roleCreateVO;
    }

}
